package cn.openbiotoken.impl;

import java.util.Objects;

import javax.annotation.Nonnull;

import cn.openbiotoken.Capability;
import edu.umd.cs.findbugs.annotations.CheckForNull;
import edu.umd.cs.findbugs.annotations.NonNull;

public class CapabilityImpl implements Capability {

    public CapabilityImpl(@NonNull @CheckForNull final int[] landmarkDimensions) {
        Objects.requireNonNull(landmarkDimensions, "The landmark dimensions should be present.");
        this.landmarkDimensions = landmarkDimensions;
    }

    @Nonnull
    private final int[] landmarkDimensions;

    @Nonnull
    @Override
    public int[] getLandmarkDimensions() {
        return landmarkDimensions;
    }
}
